{include file="public/_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/iCheck/custom.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox-title">
                        <h5>小组赛编辑</h5>
                        <div class="ibox-tools">
							<a href="{:url('admin/world/group_list')}"
								class="btn btn-primary btn-xs">返回列表</a>
						</div>
                    </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form action="{:url('admin/world/group_edit_post')}" method="post" class="form-horizontal" enctype="multipart/form-data">
                        	<input type="hidden" name="id" value="{$res.id}" />
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">比赛球队：</label>
								<div class="col-sm-2">
									<select class="form-control" name="team_id_a">
									{foreach name="arr" id="vo" key="key"}
										<option value="{$vo.id}" class="dis" {if condition="$vo.name eq $res.team_id_a"}  selected = "selected" {/if}>{$vo.name}</option>
									{/foreach}
									</select>
								</div>
								<div class="col-sm-2">
									<select class="form-control" name="team_id_b">
										{foreach name="arr" id="vo" key="key"}
										<option value="{$vo.id}" class="str" {if condition="$vo.name eq $res.team_id_b"}  selected = "selected" {/if}>{$vo.name}</option>
										{/foreach}
									</select>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">比赛日期：</label>
								<div class="col-sm-2">
									<input type="text" class="form-control" value="{$res.date}" name="date">
								</div><font color="red">格式：2018-05-05</font>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">比赛时间：</label>
								<div class="col-sm-2">
									<input type="text" class="form-control" value="{$res.time}" name="time">
								</div><font color="red">格式：02:00  英文冒号</font>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">比分：</label>
								<div class="col-sm-2">
									<input type="text" class="form-control" value="{$res.score}" name="score">
								</div><font color="red">格式：4-3</font>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">获胜球队：</label>
								<div class="col-sm-2">
									<select class="form-control" name="victory">
										<option value="" class="str" >请选择</option>
										{foreach name="arr" id="vo" key="key"}
										<option value="{$vo.id}" class="str" {if condition="$res.victory eq $vo.id"}  selected = "selected" {/if}>{$vo.name}</option>
										{/foreach}
									</select>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">获胜方：</label>
								<div class="col-sm-2">
									<input type="radio" name="type" value="1" {if condition="$res.type eq 1"} checked="true" {/if}>左边
									<input type="radio" name="type" value="2" {if condition="$res.type eq 2"} checked="true" {/if}>右边
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">是否结束：</label>
								<div class="col-sm-2">
									<select class="form-control" name="statr">
										<option value="1" class="str" {if condition="$res.statr eq 1"}selected = "selected" {/if}>已结束</option>
										<option value="2" class="dis" {if condition="$res.statr eq 2"}selected = "selected" {/if}>未开始</option>
									</select>
								</div>
							</div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {include file="public/_footer" /}
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    
    <!-- iCheck -->
    <script src="__PUBLIC_ADMIN__js/plugins/iCheck/icheck.min.js"></script>
    
    <script>
        $(document).ready(function() {
        	$('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
			
            $('.refresh').click(function(){
            	//window.location.reload();	// 刷新页面
            })
		});
	</script>
</body>
</html>
